import { AxiosRequestConfig } from 'axios'
export interface RequestConfig<T = any> extends AxiosRequestConfig {
    // 自定义配置扩展
    showLoading?: boolean // 是否显示加载提示
    customError?: boolean // 是否自定义处理错误
    retry?: number // 重试次数
    retryDelay?: number // 重试延迟(ms)
}

export interface ResponseData<T = any> {
    code: number
    data: T
    message: string
    success: boolean
    timestamp: number
}